import { IObjStore } from "@winwin/cascade-store";
export type ViewStatusHome = "route" | "view";
export interface IAppState {
  home: ViewStatusHome;
}
const state: IAppState = {
  home: "view"
};
const mutations = {
  home_route_view() {
    state.home = "view";
  },
  home_view_route() {
    state.home = "route";
  }
};
const actions = {};
const getters = {
  get home_animated() {
    return getters.home_is_view;
  },
  get home_is_view() {
    return state.home === "view";
  },
  get home_is_route() {
    return state.home === "route";
  }
};
const store: IObjStore<IAppState> = { state, mutations, actions, getters };
export default store;
